const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 高频出现的数据:
  token: state => state.user.token,
  // 头像
  avatar: state => state.user.userInfo.staffPhoto,
  // 用户名
  name: state => state.user.userInfo.username,
  // 用户id
  userId: state => state.user.userInfo.userId,
  // 企业id
  companyId: state => state.user.userInfo.companyId,
  // 静态、动态路由
  routes: state => state.permission.routes,
  userInfo: state => state.user.userInfo
}

export default getters
